package com.nikhu.fx.services;

import java.util.List;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;

import com.nikhu.fx.bom.Currency;
import com.nikhu.fx.bom.ExchangeRate;

@WebService(name = "CurrencyConverter", targetNamespace = "http://services.fx.nikhu.com/")
public interface CurrencyConverter {
	@WebMethod
	@WebResult(name = "ListOfCurrencies")
	public List<Currency> currencies();

	@WebMethod
	@WebResult(name = "ExhangeRates")
	public List<ExchangeRate> currencyRates();

	@WebMethod
	@WebResult(name = "ConvertedAmount")
	public double convertAmount(
			@WebParam(name = "FromCurrency") String fromCurrency,
			@WebParam(name = "ToCurrency") String toCurrency,
			@WebParam(name = "Amount") double amount);
}
